import service from '@/utils/request'

const SalesmanApi = {
    listSalesman:function(data){
        return service.get('salesman/page', {params:data})
      },
    addSalesman:function(data){
        return service.post('salesman', data)
    },
    editSalesman:function(data){
        return service.put('salesman', data)
    },
    deleteSalesman:function(data){
        return service.put('salesman/delete', data)
    },
    getSalesmanInfo(data){
        return service.get('salesman', {params:data})
    },
    getSalesmanIdName(data){
        return service.get('salesman/listIdName', {params:data})
    },
}

export default SalesmanApi
